package shootplane;

public class BulletEnemy extends FlyObject{

    public BulletEnemy(int x, int y) {
        // x、y是根据英雄机的位置动态传入的值
        image = ShootGame.bulletImg;
        width = image.getWidth();
        height = image.getHeight();
        speed = 3;
        this.x = x;
        this.y = y;
    }

    @Override
    public void move() {
        setY(getY() + getSpeed() * 3);
    }
}
